package EnumTest;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Author 林泽鸿
 * @Date 2020/9/30 18:03
 */
public class Main {
    public static void main(String[] args) {
        List<String> stringList = new ArrayList();
        Weekday day = Weekday.SUN;
        switch(day) {
            case MON:
            case TUE:
            case WED:
            case THU:
            case FRI:
                System.out.println("Today is " + day + ". Work at office!");

                break;
            case SAT:
            case SUN:
                System.out.println("Today is " + day + ". Work at home!");
                for (Weekday weekday : Weekday.values()){
                    System.out.println(weekday+""+weekday.num);
                }
                break;
            default:
                throw new RuntimeException("cannot process " + day);
        }
    }
}

enum Weekday {
    MON, TUE, WED, THU, FRI, SAT, SUN;
    public int num = 1;
}

